﻿<%@ Page Title="Queries" Language="C#" MasterPageFile="~/OutlookMaster.master" AutoEventWireup="true" CodeFile="QueryList.aspx.cs" Inherits="Pages_QueryList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPage" Runat="Server">

 <asp:Panel ID="panSearch" runat="server" DefaultButton="btnSearch" Visible="false">
        <table>
            <tr>
                <td>
                    <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Pages/images/magnifier.png" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="panToolbar" runat="server">
        <br />
        <asp:HyperLink ID="hypNewQuery" runat="server" Text="New Query" NavigateUrl="Query.aspx"></asp:HyperLink>
        <br />
        <br />
    </asp:Panel>
    <asp:Panel ID="panMessage" runat="server">
        <asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
    </asp:Panel>
    <asp:GridView ID="gvQueryList" runat="server" Width="100%" GridLines="Horizontal"
        DataKeyNames="QueryId" 
        OnSelectedIndexChanged="gvQueryList_SelectedIndexChanged" 
        AutoGenerateColumns="False">
        <Columns>
            <asp:CommandField ShowSelectButton="True" SelectText="Select" />
            <asp:BoundField DataField="QueryName" HeaderText="Query name" />
        </Columns>
    </asp:GridView>

</asp:Content>

